<m-data-table *ngIf="result$ | async as result" [data]="result.list" [result]="result">
  <ng-container mDataTableColumn header="日志类型">
    <ng-template let-type="type_desc">
      <td>{{ type }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="区域名称">
    <ng-template let-name="area_name">
      <td>{{ name }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="终端别名">
    <ng-template let-name="pc_name">
      <td>{{ name }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="更新对象">
    <ng-template let-target="target_desc">
      <td>{{ target }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="对象名称">
    <ng-template let-name="target_name">
      <td>{{ name }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="更新前版本">
    <ng-template let-version="old_version">
      <td>{{ version }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="更新后版本">
    <ng-template let-version="new_version">
      <td>{{ version }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="更新状态">
    <ng-template let-status="status_desc">
      <td>{{ status }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="更新时间">
    <ng-template let-created_at="created_at">
      <td>{{ created_at | date }}</td>
    </ng-template>
  </ng-container>

  <m-pagination [length]="result.total" [pageSize]="result.pageSize" [result]="result">
  </m-pagination>
</m-data-table>
